
<script>
  import $ from 'dfish-widget'
  import Text from './Text.vue'

  export default {
    mixins: [Text],
    data() {
      return {
        name: 'Textarea',
        remark: '多行文本输入框',
        examples: [
          {
            remark: '普通用法',
            type: 'html',
            view: true,
            type: 'html',
            code: `
              <template>
                <w-textarea name="content" :label="{text: '内容'}" input-height="120"></w-textarea>
              </template>
              `
          },
          {
            remark: '字数提示',
            type: 'html',
            view: true,
            type: 'html',
            code: `
              <template>
                <w-textarea name="content" :label="{text: '内容'}" input-height="120" max-length="100" :show-count="true"></w-textarea>
              </template>
              `
          },
        ]
      }
    },
    created() {
      this.merge([{
        name: 'show-count',
        type: 'Boolean',
        remark: '是否显示字数提示',
      }], 'attrs')
    }
  }
</script>

<style>
</style>
